package itsos.dao;

import org.springframework.orm.ibatis.support.*;

import itsos.model.*;

import java.util.*;

public class IssueCommentDao extends SqlMapClientDaoSupport {

	public List getIssueComment(long issueID)
	{
		return getSqlMapClientTemplate().queryForList("IssueComment.getCommentByIssueID", issueID);
	}
	
	public void insertCommentBox(IssueComment issueComment)
	{
		getSqlMapClientTemplate().insert("IssueComment.insertIssueComment", issueComment);
	}
	
	
	public void deleteIssueComment(IssueComment issueComment)
	{
		getSqlMapClientTemplate().update("IssueComment.deleteIssueComment",  issueComment);
	}
	
	
}
